﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.Servico.Bovespa.Calendario.Service.ServiceImplementation.Translator.DataContractToBusinessEntity
{
    public class CalendarioBolsa
    {
        public BusinessEntity.Parameter.FiltroCalendario ToFiltroCalendario(DataContract.Request.FiltroCalendarioRequest from)
        {
            BusinessEntity.Parameter.FiltroCalendario to = null;

            if (from != null)
            {
                to = new BusinessEntity.Parameter.FiltroCalendario();

                to.CodigoPraca = from.CodigoPraca;
                to.DataPregao = from.DataPregao;
                to.TipoDia = from.TipoDia;
            }

            return to;
        }
    }
}
